Create/clone a VM (configuration) and clone a VMI am a lazy new to linux, so that I can easily organize my articles.1. Create a VMModify the Host Name (as you can remember)Run the following command: vi/etc/sysconfig/network: | -- I (modify) | -- esc (exit modification) | --: wq (save modification)**************************************** **************************
Clone a KVM Host Machine 1.1 to view VM configurations
1 [[email protected] ~] # Cat/etc/libvirt/qemu/vm01-centos6.8.xml 2 ............ 3 [[email protected] ~] # Ll/data/images/# VM disk file 4 total 1.3G 5-RW -------. 1 qemu 21G May 27 vm01-centos6.8.img 6 7 [[email protected] ~] # Virsh list -- all # Virtual Machine name 8 id name state 9 ----------------------
It takes a lot of effort to clone a KVM Virtual Machine and recreate it each time. Therefore, cloning is a good idea. There is no direct clone menu in Hyper-V, and export and import are required. You also need to modify the name file and the like. On the contrary, it is very simple to operate in KVM. Assume that you have a vm1 Vm, and now you want to
This article is first published in the dark world.
The previous article introduced the creation and restoration of kvm vm snapshots. This article introduces the cloning of kvm vm.
You can perform the following steps to clone a kvm vm:
1. Use the virt-clone command to
Assume that you have a VM1 Vm, and now you want to clone the VM2 VM. Perform the following steps: 1. Stop VM1 Virsh shutdown VM1 Domain VM1 is being Shutdown [Email protected]: ~ # Virsh list -- all ID name state ---------------------------------- -VM1 shut off 2. Clone Create a VM2 directory first Mk
Today, colleagues asked about how to replicate a configured VM, I studied, in fact, this function is very useful. The main methods are as follows:1. Select Create Virtual machine2. This is a key step, choose custom (Create a virtual machine using another device or a specific configuration option)3. Give the virtual machine a loud name4. Select the target storage of the virtual machine file, the default, direct "Next"5. Select the version of the virtua
Clone a vmware centos7 VM
1. Shut down the VM before cloning.
2. Solve the cloned Nic problem. You need to modify HWADDR and UUID.
/Etc/sysconfig/network-scripts/ifcfg-ens32Obtain uuid: Obtain nmcli con show mac address: obtain from VM attributes
HWADDR = 00: 0C: 29: 9A: FA: 7 DTYPE = EthernetBOOTPROTO = route = 25
# Virt-clone-O vm_s-N vm_d-F/var/lib/libvirt/images/vm_d-O original Vm,-N cloned Vm, and-F storage locationShut down the cloned vm_s and virtual system manager before cloning. After cloning, you need to change the Host Name and IP address of vm_d (After cloning, the IP address is dynamically obtained) to avoid management confusion.[Root @ localhost ~] # Virt-
The VM to be cloned must be shut down before cloning.
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/4A/B2/wKiom1QmsVCBnxzaAAEYCZHuGzM607.jpg "Title =" vm1.jpg "alt =" wkiom1qmsvcbnxzaaaeyczhugzm607.jpg "/>
2. Clone
650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/4A/B4/wKioL1QmsgLjhSVqAAIMVOTrgFs879.jpg "Title =" 2.jpg" alt = "wkiol1qmsgljhsv qaaimvotrgfs879.jpg"/>
3. Select
Cloning virtual machines on VMware ESXiTranslated from http://www.dedoimedo.com/computers/vmware-esxi-clone-machine.html, skip the previous section.Clone a VM from VMware ESXiThis example uses the VMware Infrastructure Client on windows, so linux users will be invited, but the idea is the same.Step 1: Start the VMware Infrastructure ClientIf you use ESXI, you will find that it is different from the server v
RHEL6 Virtual Machine clone network problem solution environment: Virtualbox + RHEL 6 x64 Virtual Machine cloned with VirtualBox vboxmanager, operating system RHEL6, after startup, it is found that the network card is unavailable. Restart the network service and report the following error: Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED] similar things happen in RHEL5, because the MAC of the
After cloning, the VMware virtual machine discovers that the original eth0 of the cloned host will be gone, instead there will be a new Mac Nic Eth1. This article solves how to reasonably change the NIC to eth0.
Ifconfig eth1 determine the MAC address of the new network card.Nmcli con determine the UUID of the new NIC
2Vim/etc/udev/rules.d/70-persistent-net.rulesDelete the relevant information of the original eth0 and change the name of Eth1 to Eth0
3Cd/etc/sysconfig/network-scriptsVim I
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.